
<div class="toolbox">
  <%= link_to "채널추가하기", new_admin_channel_path %>
</div>

<table class="channels">
  <thead>
    <tr>
      <th class="name">채널코드</th>
      <th class="desc">채널표기명</th>
      <th class="timetable">편성표</th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% @channels.each do |channel| %>
      <tr class="<%= cycle("odd", "even") %>">
        <td class="name"><%= channel.name %></td>
        <td class="desc"><%= channel.desc %></td>
        <td class="timetable"><%= link_to "편성표 관리", [:admin, channel, :programs] %></td>
        <td class="actions">
          <%= link_to "수정", edit_admin_channel_path(channel) %>
          <%= link_to "삭제", [:admin, channel], :method => :delete, :confirm => "sure?" %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

